<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AlterReportTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('report', function (Blueprint $table) {
            $table->string('reason', 50)->comment('举报理由')->after('moment_id');
            $table->string('images', 50)->default('')->comment('举报截图')->after('reason');
            $table->string('desc', 100)->default('')->comment('举报描述')->after('reason');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('report', function (Blueprint $table) {
            //
        });
    }
}
